package com.example.e_aop

import com.example.e_aop.AspectHandler.handle
import io.vertx.core.AbstractVerticle
import io.vertx.core.Promise

/**
@author whd
@date 2023/11/25 15:33:11
 */


class MyVerticle : AbstractVerticle() {
  @LogExecutionTime
  fun someMethod():Int {
    // 这里是你的业务逻辑
    println("Executing someMethod...")
    return 100
  }
  @LogExecutionTime
  fun someMethod1():Int {
    // 这里是你的业务逻辑
    println(" someMethod1...")
    return 100
  }

}

fun main() {
  val myVerticle = MyVerticle()
  //myVerticle.someMethod()
  var b = B()
  handle(b)
  handle(myVerticle)
}


